<?php

namespace App\Events\User;

use App\Events\Event;

class UserRegisterEvent extends Event
{

    public $userInfo;
    public $userLogin;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($userInfo, $userLogin)
    {
        //
        $this->userInfo = $userInfo;
        $this->userLogin = $userLogin;

        app('log')->info('触发UserRegisterEvent事件--');

        app('log')->info(json_encode($this->userInfo));
        app('log')->info(json_encode($this->userLogin));
    }
}
